<?php
require('config.php');
//print "connecting";
mysql_connect("mysql-starka.x10hosting.com",$user,$password);
mysql_select_db($database) or die( "Unable to select database");

if(isset($_GET['keyword']))	{
    $query = "SELECT NDB_No, Shrt_Desc FROM sr22 WHERE Shrt_Desc LIKE '%". mysql_real_escape_string($_GET['keyword']) ."%' LIMIT 50;";
    $results= mysql_query($query);
    while ($row=mysql_fetch_array($results)) {
        print($row[1]."\n");                       }
}
mysql_close();
?>